﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace PracaInz_v0
{
    class CompleatTree
    {
        public DrawTree TreeView { get; set; }
        public TreeD TreeData { get; set; }
        public DataTable Vectors { get; set; }       

        public static DataTable RandVect(DataTable source, int quantity)
        {
            // losowanie wektorow 
            Random ran = new Random();
            DataTable dt = source.Clone();
            int rows = source.Rows.Count;

            for (int i = 0; i < quantity; i++)
            {
                dt.ImportRow(source.Rows[ran.Next(rows)]);
            }

            return dt;
        }
    }
}
